<template>
  <div id="app1">
    <BaseCount :count="count" @changeCount="handleChange"></BaseCount>
  </div>
</template>

<script>
import BaseCount from './components/BaseCount.vue';

export default {
  name: 'App',
  data() {
    return {
      count: 100
    }
  },
  methods: {
    handleChange(newVal) {
      // console.log(newVal);
      this.count = newVal
    }
  },
  components: {
    BaseCount,
  }

}
</script>

<style>
</style>